package com.foreveross.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.foreveross.dao.ExpressDAO;
import com.foreveross.dao.HrOptimizedDao;
import com.foreveross.vo.HrFavorable;
import com.foreveross.vo.HrOptimized;
import com.foreveross.vo.common.PageVo;

@Service("hrOptimizedService")
@Transactional
public class HrOptimizedService  extends BaseService  {
	
	@Resource
	public HrOptimizedDao hrOptimizedDAO;
		
	public long getHrOptimizedListCount(String weixinID,String userId,String title,String houseId) throws Exception{
		return hrOptimizedDAO.getHrOptimizedListCount(weixinID,userId,title,houseId);
	}

	public List<HrOptimized> getHrOptimizedList(String weixinID,String userId,String title,String houseId, int pageIndex,
			int pageSize) throws Exception{
		
		return hrOptimizedDAO.getHrOptimizedList(weixinID, userId,title,houseId,pageIndex,pageSize);
	}
	
	public HrOptimized getHrOptimizedById(String id) throws Exception{
		
		return (HrOptimized) hrOptimizedDAO.findById(HrOptimized.class, id);
	}

}
